﻿<CascadingAuthenticationState>
    <Router AppAssembly="@typeof(App).Assembly">
        <Found Context="routeData">
            <AuthorizeRouteView RouteData="@routeData" DefaultLayout="@typeof(MainLayout)">
                <NotAuthorized>
                    <lcwb.Pages.Basic.Component._403></lcwb.Pages.Basic.Component._403>
                </NotAuthorized>
            </AuthorizeRouteView>
        </Found>
        <NotFound>
            <PageTitle>Not found</PageTitle>
            <LayoutView Layout="@typeof(MainLayout)">
                <lcwb.Pages.Basic.Component._404></lcwb.Pages.Basic.Component._404>
            </LayoutView>
        </NotFound>
    </Router>
</CascadingAuthenticationState>

<AntContainer />

@code {
    // AuthenticationStateProvider
    // AuthorizeRouteView 和其他授权机制会调用GetAuthenticationStateAsync来确定用户是否已认证
}
